Matthias Clasen [Tue, 20 Jul 2004 04:48:15 +0000 (04:48 +0000)]
Set drag_pos before grabbing the focus, since we may reenter into
Tue Jul 20 00:45:38 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Set drag_pos
before grabbing the focus, since we may reenter into
gtk_tree_view_motion_resize_column() which requires drag_pos
to be set. (#147913, Guilherme Salgado, patch by John Finlay)
Matthias Clasen [Tue, 20 Jul 2004 04:05:42 +0000 (04:05 +0000)]
Don't use uninitialized node pointer. (#147911, Peter Zelezny)
Mon Jul 19 23:51:50 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_enter_notify): Don't
use uninitialized node pointer. (#147911, Peter Zelezny)
Soeren Sandmann [Tue, 20 Jul 2004 02:35:35 +0000 (02:35 +0000)]
Bump version number
Tue Jul 20 04:34:56 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* configure.in: Bump version number
Soeren Sandmann [Tue, 20 Jul 2004 02:26:06 +0000 (02:26 +0000)]
=== Released 2.5.0 ===
Sun Jul 18 17:21:10 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* === Released 2.5.0 ===
* NEWS: updates
* tests/testcombo.c: Fix compilation
Matthias Clasen [Mon, 19 Jul 2004 19:57:29 +0000 (19:57 +0000)]
Updates.
Matthias Clasen [Mon, 19 Jul 2004 19:33:05 +0000 (19:33 +0000)]
Typo fix.
Matthias Clasen [Mon, 19 Jul 2004 19:09:29 +0000 (19:09 +0000)]
Add bug ref`
Matthias Clasen [Mon, 19 Jul 2004 19:07:27 +0000 (19:07 +0000)]
Make GtkCellView public, since people seem to have uses for it, it is
2004-07-19 Matthias Clasen <mclasen@redhat.com>
Make GtkCellView public, since people seem to have uses for it,
it is clean API and we were just conservative in not making it
public initially. At the same time, get rid of GtkCellViewMenuItem,
which doesn't have any function which can't be served by a
GtkMenuItem with a GtkCellView child.
* gtk/gtk.h: Include gtkcellview.h
* gtk/Makefile.am (gtk_public_h_sources):
* gtk/Makefile.am (gtk_private_h_sources):
(gtk_c_sources): Remove gtkcellviewmenuitem.[hc]
* gtk/gtkcombobox.c: Replace all uses of GtkCellViewMenuItem by
GtkMenuItem with a GtkCellView child.
* gtk/gtkcellviewmenuitem.[hc]: Removed.
Matthias Clasen [Mon, 19 Jul 2004 18:15:48 +0000 (18:15 +0000)]
Support inline autocompletion in entries (#135953)
2004-07-19 Matthias Clasen <mclasen@redhat.com>
Support inline autocompletion in entries (#135953)
* gtk/gtkentryprivate.h:
* gtk/gtkentrycompletion.h:
* gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
Add a new signal ::insert-prefix which can be used to override
the default inline-completion behaviour. Add two new boolean
properties, :popup_completion and :inline_completion which
determine how the possible completions should be presented.
(gtk_entry_completion_insert_prefix): New function to request
a prefix insertion.
* gtk/gtkentry.c: Add the necessary glue for inline completion.
David Lodge [Sun, 18 Jul 2004 21:51:15 +0000 (21:51 +0000)]
Updated British translation.
2004-07-18 David Lodge <dave@cirt.net>
* en_GB.po: Updated British translation.
Soeren Sandmann [Sun, 18 Jul 2004 15:14:05 +0000 (15:14 +0000)]
Create an empty target list if targets is NULL.
Sun Jul 18 15:28:24 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkdnd.c (gtk_drag_source_set, gtk_drag_dest_set): Create an
empty target list if targets is NULL.
* configure.in: Add check for X11/extensions/sync.h. (#147416,
Morten Welinder)
Matthias Clasen [Sun, 18 Jul 2004 05:24:55 +0000 (05:24 +0000)]
Updates for 2.5.0
Matthias Clasen [Sun, 18 Jul 2004 03:42:51 +0000 (03:42 +0000)]
Updates.
Matthias Clasen [Sun, 18 Jul 2004 03:39:50 +0000 (03:39 +0000)]
Add a new :orientation property to determine whether text is positioned
Sat Jul 17 23:11:04 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkiconview.h:
* gtk/gtkiconview.c (gtk_icon_view_class_init):
* gtk/gtkiconview.c (gtk_icon_view_set_orientation):
* gtk/gtkiconview.c (gtk_icon_view_get_orientation):
* gtk/gtkiconview.c (gtk_icon_view_calculate_item_size):
* gtk/gtkiconview.c (gtk_icon_view_layout_single_row):
Add a new :orientation property to determine whether text
is positioned below or beside icons. (#147463)
Matthias Clasen [Sun, 18 Jul 2004 03:05:24 +0000 (03:05 +0000)]
Draw focus indicator outside the selection, respect focus line width.
Sat Jul 17 23:03:30 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkiconview.c (gtk_icon_view_paint_item):
* gtk/gtkiconview.c (gtk_icon_view_calculate_item_size):
* gtk/gtkiconview.c (gtk_icon_view_layout_single_row): Draw
focus indicator outside the selection, respect focus
line width. (#147460)
Matthias Clasen [Sat, 17 Jul 2004 05:18:09 +0000 (05:18 +0000)]
Fix a warning message.
Matthias Clasen [Sat, 17 Jul 2004 04:58:02 +0000 (04:58 +0000)]
Support text/plain selection target (#55117, Owen Taylor)
Sat Jul 17 00:48:27 2004 Matthias Clasen <maclas@gmx.de>
Support text/plain selection target (#55117, Owen Taylor)
* gtk/gtkselection.h:
* gtk/gtkdnd.h:
* gtk/gtkselection.c (gtk_target_list_add_text_targets):
* gtk/gtkdnd.c (gtk_drag_dest_add_text_targets):
* gtk/gtkdnd.c (gtk_drag_source_add_text_targets): New
functions to facilitate handling of text targets.
* gtk/gtkentry.c:
* gtk/gtktextview.c: Use the new text target handling
functions instead of hardwiring the list of supported
text targets everywhere.
* gtk/gtkselection.c (gtk_selection_data_get_text):
(gtk_selection_data_set_text):
Support the targets text/plain, text/plain?charset=utf-8
and text/plain?charset=<LOCALE-CHARSET> as outlined in
#55117:
For text/plain send only ASCII, but accept 8-bit text
and treat it as ISO-8859-1 as specified by the Xdnd spec.
Always send CRLF terminators. Accept either and convert
into the native terminator for the platform.
Matthias Clasen [Sat, 17 Jul 2004 03:55:07 +0000 (03:55 +0000)]
Support named themed window icons.
Matthias Clasen [Fri, 16 Jul 2004 21:13:21 +0000 (21:13 +0000)]
Make scrolling work if no item is selected. (gtk_cell_editable_key_press):
2004-07-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.c (gtk_combo_box_scroll_event): Make
scrolling work if no item is selected.
(gtk_cell_editable_key_press): Don't eat space.
Matthias Clasen [Fri, 16 Jul 2004 20:34:36 +0000 (20:34 +0000)]
Add GtkCellRendererCombo
Matthias Clasen [Fri, 16 Jul 2004 20:27:40 +0000 (20:27 +0000)]
Add a combo box cell renderer.
Matthias Clasen [Fri, 16 Jul 2004 14:33:21 +0000 (14:33 +0000)]
Don't iterate multiple times over some of the children.
2004-07-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.c (gtk_combo_box_forall): Don't iterate
multiple times over some of the children.
Matthias Clasen [Fri, 16 Jul 2004 13:48:38 +0000 (13:48 +0000)]
Add missing files. (#147688, Christian Rose)
2004-07-16 Matthias Clasen <mclasen@redhat.com>
* POTFILES.in: Add missing files. (#147688,
Christian Rose)
Matthias Clasen [Fri, 16 Jul 2004 02:22:48 +0000 (02:22 +0000)]
Fix #60128, #58307, #144706:
Thu Jul 15 22:19:40 2004 Matthias Clasen <maclas@gmx.de>
Fix #60128, #58307, #144706:
* gtk/gtkstyle.c (gtk_style_real_copy): Handle references
to bg_pixmaps properly.
(gtk_style_real_unrealize): Don't keep dangling references
to the bg_pixmaps.
(gtk_style_attach): Split the loop into two loops, first
looking for a matching style, then for an empty one.
(gtk_style_finalize):
(gtk_style_duplicate): Add comments explaining the handling
of style->styles.
Matthias Clasen [Fri, 16 Jul 2004 00:38:06 +0000 (00:38 +0000)]
Install the timeout before changing the value, so that a ::value_changed
Thu Jul 15 20:31:28 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkspinbutton.c (start_spinning): Install the timeout
before changing the value, so that a ::value_changed handler
has a chance to remove it. (#122427, Elke Meier)
Matthias Clasen [Thu, 15 Jul 2004 23:24:51 +0000 (23:24 +0000)]
Use 'cannot' instead of 'can not' in messages. (#144226, Morten Welinder)
Thu Jul 15 19:20:05 2004 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale):
* gtk/gtkcalendar.c (gtk_calendar_class_init): Use 'cannot'
instead of 'can not' in messages. (#144226, Morten Welinder)
Matthias Clasen [Thu, 15 Jul 2004 17:52:34 +0000 (17:52 +0000)]
Correct the declared default values of several properties to be in sync
2004-07-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_class_init):
* gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
Correct the declared default values of several properties
to be in sync with the actual initial values.
Matthias Clasen [Thu, 15 Jul 2004 17:48:04 +0000 (17:48 +0000)]
Correct the declared default values of several properties to be in sync
2004-07-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property):
Correct the declared default values of several properties
to be in sync with the actual initial values.
Matthias Clasen [Thu, 15 Jul 2004 17:37:06 +0000 (17:37 +0000)]
Make spacing a property, correct the declared default values of several
2004-07-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
Make spacing a property, correct the declared default values
of several properties to be in sync with the actual initial
values. (#147654, Matthias Clasen)
Matthias Clasen [Thu, 15 Jul 2004 16:43:55 +0000 (16:43 +0000)]
Don't reparent back to menu->toplevel if it is already gone because we're
2004-07-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Don't reparent
back to menu->toplevel if it is already gone because we're
shutting down. (#147656, John Cupitt)
Pawan Chitrakar [Thu, 15 Jul 2004 04:26:17 +0000 (04:26 +0000)]
Updated Nepali Translation
2004-07-15 Pawan Chitrakar <pawan@nplinux.org>
* ne.po: Updated Nepali Translation
Federico Mena Quintero [Thu, 15 Jul 2004 01:36:29 +0000 (01:36 +0000)]
Fix #126295:
2004-07-14 Federico Mena Quintero <federico@ximian.com>
Fix #126295:
* gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw a focus
indicator along the edge of the bin_window when the tree is empty.
(grab_focus_and_unset_draw_keyfocus): New helper function.
(gtk_tree_view_button_press): Remove a bit of superfluous code.
Use the helper function to save on duplicated code.
(gtk_tree_view_button_press): Grab the focus if the tree is empty.
(gtk_tree_view_focus): Allow focusing into an empty tree.
Matthias Clasen [Wed, 14 Jul 2004 17:19:04 +0000 (17:19 +0000)]
Don't use gcc extensions for the ternary ?: operator. (#147590, Damien
2004-07-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaboutdialog.c (add_credits_page): Don't use
gcc extensions for the ternary ?: operator. (#147590,
Damien Carbery)
Federico Mena Quintero [Wed, 14 Jul 2004 17:08:40 +0000 (17:08 +0000)]
Fix #144405, patch by Padraig O'Briain <padraig.obriain@sun.com>:
2004-07-14 Federico Mena Quintero <federico@ximian.com>
Fix #144405, patch by Padraig O'Briain <padraig.obriain@sun.com>:
* gtk/gtkfilechooserdefault.c (shortcuts_list_create): Set the
accessible object name for the tree view.
(create_file_list): Likewise.
Matthias Clasen [Wed, 14 Jul 2004 01:57:16 +0000 (01:57 +0000)]
Don't leak no_svg_filename. (#147399, Kjartan Maraas)
Tue Jul 13 21:53:08 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkicontheme.c (free_unthemed_icon): Don't leak
no_svg_filename. (#147399, Kjartan Maraas)
Matthias Clasen [Tue, 13 Jul 2004 21:26:19 +0000 (21:26 +0000)]
Make this work in RTL context.
2004-07-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_get_neighbor_sizes):
Make this work in RTL context.
Matthias Clasen [Tue, 13 Jul 2004 19:15:09 +0000 (19:15 +0000)]
Fix build error.
Federico Mena Quintero [Tue, 13 Jul 2004 18:25:48 +0000 (18:25 +0000)]
Set a busy cursor while mounting the volume. Also, ref the chooser while
2004-07-13 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (shortcuts_activate_volume): Set a
busy cursor while mounting the volume. Also, ref the chooser
while mounting, as we may re-enter. Fixes #139376.
Matthias Clasen [Tue, 13 Jul 2004 17:56:29 +0000 (17:56 +0000)]
Prepare to handle composite implementations of GtkCellEditable, but
2004-07-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_adjustment_changed):
Prepare to handle composite implementations of
GtkCellEditable, but recursively poking at
allocation->y (hack stolen from GtkCList).
Matthias Clasen [Tue, 13 Jul 2004 14:50:11 +0000 (14:50 +0000)]
Ugh, another compile error.
Matthias Clasen [Tue, 13 Jul 2004 14:49:02 +0000 (14:49 +0000)]
Ugh, forgotten ;
Matthias Clasen [Tue, 13 Jul 2004 14:17:49 +0000 (14:17 +0000)]
Add gtk_parse_args()
Matthias Clasen [Tue, 13 Jul 2004 13:54:13 +0000 (13:54 +0000)]
Don't crash if unrealized.
2004-07-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't
crash if unrealized.
Amanpreet Singh Alam [Tue, 13 Jul 2004 11:10:24 +0000 (11:10 +0000)]
13/7/04 aman <amanlinux@netscape.net> modify
Matthias Clasen [Tue, 13 Jul 2004 06:02:24 +0000 (06:02 +0000)]
Updates.
Matthias Clasen [Tue, 13 Jul 2004 05:50:54 +0000 (05:50 +0000)]
Don't display untranslated translator credits.
Tue Jul 13 01:50:06 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkaboutdialog.c (display_credits_dialog): Don't
display untranslated translator credits.
Matthias Clasen [Tue, 13 Jul 2004 05:16:59 +0000 (05:16 +0000)]
Updates
Matthias Clasen [Tue, 13 Jul 2004 05:15:49 +0000 (05:15 +0000)]
Some documentation updates.
Soeren Sandmann [Mon, 12 Jul 2004 22:52:40 +0000 (22:52 +0000)]
Do an empty begin_paint_region()/end_paint() for windows without
Tue Jul 13 00:40:29 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/gdkwindow.c (gdk_window_process_updates_internal): Do an
empty begin_paint_region()/end_paint() for windows without
EXPOSURE_MASK.
* gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_unset_bg,
_gdk_x11_window_tmp_reset_bg): Remove checks for EXPOSURE_MASK.
Matthias Clasen [Mon, 12 Jul 2004 21:50:18 +0000 (21:50 +0000)]
Use a GtkAboutDialog.
* demos/gtk-demo/appwindow.c: Use a GtkAboutDialog.
Federico Mena Quintero [Mon, 12 Jul 2004 20:25:34 +0000 (20:25 +0000)]
Start of the GTK+ glossary.
2004-07-12 Federico Mena Quintero <federico@ximian.com>
* gtk/glossary.xml: Start of the GTK+ glossary.
* gtk/Makefile.am (content_files): Added glossary.xml.
* gtk/gtk-docs.sgml: Likewise.
Matthias Clasen [Mon, 12 Jul 2004 17:03:06 +0000 (17:03 +0000)]
Docs for GtkAboutDialog.
Matthias Clasen [Mon, 12 Jul 2004 16:38:04 +0000 (16:38 +0000)]
New widget: GtkAboutDialog.
2004-07-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaboutdialog.h:
* gtk/gtkaboutdialog.c: New widget: GtkAboutDialog.
* gtk/Makefile.am (gtk_public_h_sources, gtk_c_sources):
* gtk/gtk.h: Add GtkAboutDialog. (#109435, Paolo Borelli,
patch by Matthias Clasen)
Matthias Clasen [Mon, 12 Jul 2004 16:21:45 +0000 (16:21 +0000)]
Apply the gtk-default-menu-item-style to cell view menu items as well.
* gtk/gtkrc.c (_gtk_rc_init): Apply the gtk-default-menu-item-style
to cell view menu items as well. (#147405, John Cupitt)
Matthias Clasen [Mon, 12 Jul 2004 16:15:55 +0000 (16:15 +0000)]
Forgotten file.
Matthias Clasen [Mon, 12 Jul 2004 14:38:10 +0000 (14:38 +0000)]
Warning fixes.
Matthias Clasen [Mon, 12 Jul 2004 05:57:41 +0000 (05:57 +0000)]
Include the update_counter check in the HAVE_XSYNC condition, since
Mon Jul 12 01:56:26 2004 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkwindow-x11.c (gdk_toplevel_x11_free_contents):
Include the update_counter check in the HAVE_XSYNC condition,
since update_counter isn't present in the !HAVE_XSYNC case.
Matthias Clasen [Mon, 12 Jul 2004 04:58:10 +0000 (04:58 +0000)]
Add new stock items.
Mon Jul 12 00:57:32 2004 Matthias Clasen <maclas@gmx.de>
* gtk/tmpl/gtkstock.sgml:
* gtk/Makefile.am (HTML_IMAGES):
* gtk/gtk-sections.txt: Add new stock items.
Matthias Clasen [Mon, 12 Jul 2004 04:56:30 +0000 (04:56 +0000)]
Add a number of new stock items. (#102530, #68015, #109811, Jordi Mallach,
Mon Jul 12 00:52:04 2004 Matthias Clasen <maclas@gmx.de>
* gtk/stock-icons/Makefile.am:
* gtk/stock-icons/stock_about_{16,24}.png:
* gtk/stock-icons/stock_connect_{16,24}.png:
* gtk/stock-icons/stock_disconnect_{16,24}.png:
* gtk/stock-icons/stock_edit_{16,24}.png:
* gtk/stock-icons/stock_media_forward_{16,24}.png:
* gtk/stock-icons/stock_media_next_{16,24}.png:
* gtk/stock-icons/stock_media_pause_{16,24}.png:
* gtk/stock-icons/stock_media_play_{16,24}.png:
* gtk/stock-icons/stock_media_previous_{16,24}.png:
* gtk/stock-icons/stock_media_record_{16,24}.png:
* gtk/stock-icons/stock_media_rewind_{16,24}.png:
* gtk/stock-icons/stock_media_stop_{16,24}.png:
* gtk/gtkstock.h (GTK_STOCK_ABOUT):
* gtk/gtkstock.h (GTK_STOCK_CONNECT):
* gtk/gtkstock.h (GTK_STOCK_DISCONNECT):
* gtk/gtkstock.h (GTK_STOCK_EDIT):
* gtk/gtkstock.h (GTK_STOCK_MEDIA_FORWARD):
* gtk/gtkstock.h (GTK_STOCK_MEDIA_NEXT):
* gtk/gtkstock.h (GTK_STOCK_MEDIA_PAUSE):
* gtk/gtkstock.h (GTK_STOCK_MEDIA_PLAY):
* gtk/gtkstock.h (GTK_STOCK_MEDIA_PREVIOUS):
* gtk/gtkstock.h (GTK_STOCK_MEDIA_RECORD):
* gtk/gtkstock.h (GTK_STOCK_MEDIA_REWIND):
* gtk/gtkstock.h (GTK_STOCK_MEDIA_STOP):
* gtk/gtkiconfactory.c (get_default_icons):
* gtk/gtkstock.c (builtin_items): Add a number of new stock
items. (#102530, #68015, #109811, Jordi Mallach, Benjamin Otte,
Michael Opdenacker)
Soeren Sandmann [Sun, 11 Jul 2004 13:26:57 +0000 (13:26 +0000)]
Bug 143330, support update counter spec.
Sun Jul 11 15:24:03 2004 Soeren Sandmann <sandmann@daimi.au.dk>
Bug 143330, support update counter spec.
* configure.in: Add check for the Sync extension
* gdk/gdkwindow.h: gdk_window_enable_synchronized_configure() and
gdk_window_configure_finished()
* gtk/gtkwindow.c (gtk_window_move_resize): Call gdk_window_finish_configure().
* gtk/gtkwindow.c (gtk_window_realize): Automatically enable
synchronized configures.
* gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store current
and pending counter values.
* gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): New function.
* gdk/x11/gdkwindow-x11.c
(gdk_window_enable_synchronized_configure): New function.
* gdk/x11/gdkwindow-x11.c (gdk_toplevel_x11_free_contents):
Delete update counter.
* gdk/x11/gdkwindow-x11.c (set_wm_protocols): Advertise
_NET_WM_SYNC_REQUEST when Sync is available
* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Handle
_NET_WM_SYNC_REQUEST messages
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Save counter
value for use by gdk_window_configure_finished() when receiving
ConfigureNotifies.
* gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add use_sync flag
* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Check if the XSync
extension is available
* gdk/x11/gdkdisplay-x11.c: Add _NET_WM_SYNC_REQUEST and
_NET_WM_SYNC_REQUEST_COUNTER to list of supported atoms.
* gdk/linux-fb/gdkwindow-fb.c, gdk/win32/gdkwindow-win32.c: Add
stubs for enable_synchronized_configure() and configure_finished()
Matthias Clasen [Sun, 11 Jul 2004 03:37:48 +0000 (03:37 +0000)]
Make middle-button pasting work as expected inside the entry. (#116789,
Sat Jul 10 23:35:13 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkentry.c (paste_received): Make middle-button pasting
work as expected inside the entry. (#116789, Scott Bronson)
Matthias Clasen [Sun, 11 Jul 2004 02:20:01 +0000 (02:20 +0000)]
Update clipboards. (#142805, Mikael Hallendal)
Sat Jul 10 22:13:53 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextbuffer.c (gtk_text_buffer_select_range): Update
clipboards. (#142805, Mikael Hallendal)
Soeren Sandmann [Sat, 10 Jul 2004 23:42:47 +0000 (23:42 +0000)]
Remove clip-region computing code. Just use &paned->handle_pos.
Sun Jul 11 01:38:48 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkpaned.c (gtk_paned_expose): Remove clip-region computing
code. Just use &paned->handle_pos.
Søren Sandmann Pedersen [Sat, 10 Jul 2004 23:15:16 +0000 (23:15 +0000)]
Fix ChangeLog
Soeren Sandmann [Sat, 10 Jul 2004 23:14:14 +0000 (23:14 +0000)]
Bug 144371
Sun Jul 11 01:12:50 2004 Soeren Sandmann <sandmann@daimi.au.dk>
Bug 144371
* gtk/gtknotebook.c (gtk_notebook_size_allocate): Remove an
unnecessary redraw..
* gtk/gtknotebook.c (gtk_notebook_page_allocate): Remove some
incorrect redraws.
Matthias Clasen [Sat, 10 Jul 2004 05:36:06 +0000 (05:36 +0000)]
Updates.
Soeren Sandmann [Fri, 9 Jul 2004 23:57:08 +0000 (23:57 +0000)]
Insert checks for root window. The root window is never mapped.
Sat Jul 10 01:55:29 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_{re|un}set_bg):
Insert checks for root window. The root window is never mapped.
Soeren Sandmann [Fri, 9 Jul 2004 23:06:35 +0000 (23:06 +0000)]
Fix a warning Actually unset bg.
Sat Jul 10 01:06:05 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/x11/gdkwindow-x11.c (post_unmap): Fix a warning
* gdk/x11/gdkwindow-x11.c (show_window_internal): Actually unset
bg.
Soeren Sandmann [Fri, 9 Jul 2004 22:44:35 +0000 (22:44 +0000)]
Bug 113310.
Sat Jul 10 00:37:45 2004 Soeren Sandmann <sandmann@daimi.au.dk>
Bug 113310.
* gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_{un|re}set_bg):
New functions that can do a recursive unset/reset bg.
* gdk/x11/gdkgeometry-x11.c: Remove
gdk_window_tmp_{un|re}set_bg().
* gdk/x11/gdkwindow-x11.c (pre_unmap, post_unmap): New functions
called before and after unmapping a window. They unset the
background of all other windows to prevent flicker from the X
server repainting the background. post_unmap() also invalidates
the parent of the unmapped window to draw it without roundtrips.
* gdk/x11/gdkwindow-x11.c (show_window_internal): Unset
background of newly mapped windows and all desendants to prevent
flicker.
Manish Singh [Fri, 9 Jul 2004 22:42:19 +0000 (22:42 +0000)]
have a dummy case GDK_OWNER_CHANGE in switch statements to avoid gcc
Fri Jul 9 15:33:55 2004 Manish Singh <yosh@gimp.org>
* gdk/gdkevents.c: have a dummy case GDK_OWNER_CHANGE in switch
statements to avoid gcc warnings about not all enum values handled.
* gdk/x11/gdkdisplay-x11.c (gdk_display_open): ignore should live in
#ifdef HAVE_XFIXES.
Manish Singh [Fri, 9 Jul 2004 22:40:37 +0000 (22:40 +0000)]
function doesn't return a value, so don't use g_return_val_if_fail()
Fri Jul 9 15:38:06 2004 Manish Singh <yosh@gimp.org>
* gdk-pixbuf-io.c (gdk_pixbuf_format_set_disabled): function doesn't
return a value, so don't use g_return_val_if_fail()
* gdk-pixbuf-scale.c (gdk_pixbuf_rotate_simple): initialize dest in
the can't happen case, to quiet gcc.
* io-tiff.c (tifflibversion): enclose in #if TIFFLIB_VERSION >=
20031226.
Soeren Sandmann [Fri, 9 Jul 2004 21:27:09 +0000 (21:27 +0000)]
Add an "override_redirect" bit.
Fri Jul 9 23:26:09 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/x11/gdkwindow-x11.h (struct _GdkWindowImplX11): Add an
"override_redirect" bit.
* gdk/x11/gdkwindow-x11.c (gdk_window_new): Set it here.
* gdk/x11/gdkwindow-x11.c (gdk_window_move, gdk_window_resize,
gdk_window_move_resize):
Update the local size/position cache
immediately for override redirect windows.
* gdk/x11/gdkwindow-x11.c (show_window_internal): Invalidate
newly mapped child and override redirect windows.
Federico Mena Quintero [Fri, 9 Jul 2004 21:13:20 +0000 (21:13 +0000)]
Fixes #137031:
2004-07-09 Federico Mena Quintero <federico@ximian.com>
Fixes #137031:
* gtk/gtkfilesystemunix.c (get_fallback_icon): New helper
function, fetches a stock icon as a fallback.
(gtk_file_system_unix_volume_render_icon): Fall back to a stock
icon.
(gtk_file_system_unix_render_icon): Fall back to a stock icon.
Use helper functions rather than being a mega-function.
(get_icon_name_for_directory): Renamed from
get_icon_for_directory().
(get_icon_type_from_path): New helper function; code pulled out
from gtk_file_system_unix_render_icon().
(get_special_icon): Likewise.
(get_icon_for_mime_type): Likewise.
cinamod [Fri, 9 Jul 2004 20:28:41 +0000 (20:28 +0000)]
change icon sizes, toolbar sizes
Matthias Clasen [Fri, 9 Jul 2004 18:08:35 +0000 (18:08 +0000)]
Use the requisition of the widget instead of relying on the style drawing
2004-07-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the
requisition of the widget instead of relying on the style
drawing function to supply the size of the drawable. (#146531)
Federico Mena Quintero [Fri, 9 Jul 2004 17:43:10 +0000 (17:43 +0000)]
Fix typo; tmp_event -> temp_event.
2004-07-09 Federico Mena Quintero <federico@ximian.com>
* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
temp_event.
Matthias Clasen [Fri, 9 Jul 2004 15:11:36 +0000 (15:11 +0000)]
Make GtkEntry work harder to protect passwords: (#143955, Morten Welinder)
2004-07-09 Matthias Clasen <mclasen@redhat.com>
Make GtkEntry work harder to protect passwords: (#143955,
Morten Welinder)
* gtk/gtkentry.c (gtk_entry_destroy): Add a destroy handler
to clear the password even if the widget is leaked.
* gtk/gtkentry.c (gtk_entry_real_delete_text):
* gtk/gtkentry.c (gtk_entry_finalize): Zero out the memory
before freeing it.
* gtk/gtkentry.c (gtk_entry_real_insert_text): Zero and free
the old memory instead of just reallocating it.
* gtk/gtkentry.c (gtk_entry_create_layout): Don't leak text
direction information for passwords.
Matthias Clasen [Fri, 9 Jul 2004 14:40:36 +0000 (14:40 +0000)]
Fix some cases where style functions were not handling widget == NULL
2004-07-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkstyle.c: Fix some cases where style functions were
not handling widget == NULL properly. (#146282)
Matthias Clasen [Fri, 9 Jul 2004 02:44:24 +0000 (02:44 +0000)]
Improve the EXPANDER_MAX warning.
Thu Jul 8 22:38:58 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c: Improve the EXPANDER_MAX warning.
Federico Mena Quintero [Fri, 9 Jul 2004 00:53:48 +0000 (00:53 +0000)]
Fix #139290:
2004-07-08 Federico Mena Quintero <federico@ximian.com>
Fix #139290:
* gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Add a
GError argument. Do check for errors when getting the
GtkFileFolder: get the folder and read the children before
actually creating the model. Removed obsolete code that handled
roots-changed on the file system.
(file_model_node_get_info): Assert that we don't reach the old
case to display file system roots.
(roots_changed_callback): Removed.
* gtk/gtkfilechooserdefault.c (set_list_model): Add a GError
argument, and a boolean return value. Return an error if we
cannot create the file system model. On error, set a NULL model
on the tree.
(gtk_file_chooser_default_set_current_folder): Use the error value
from set_list_model().
(gtk_file_chooser_default_set_property): Set the show_hidden
property only if the browse_files_model exists.
(gtk_file_chooser_default_unselect_path): Only operate if the
browse_files_model exists.
(check_preview_change): Check whether we have the sort_model.
(change_folder_and_display_error): Copy the path we get passed
before using it. There's a comment in there that explains why we
need to copy it; basically, if the passed path belongs to the
model, the model may go away in the middle of this function and
we'll be left with a dangling pointer.
(install_list_model_filter): Assert that the model is not NULL.
(set_current_filter): Check whether the model exists.
* gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Don't
g_return_if_fail if the model is NULL.
(gtk_tree_selection_get_selected_rows): Likewise.
(gtk_tree_selection_count_selected_rows): Likewise.
(gtk_tree_selection_selected_foreach): Likewise.
(gtk_tree_selection_path_is_selected): Likewise; rather just
return FALSE.
(gtk_tree_selection_select_all): Likewise.
(gtk_tree_selection_unselect_all): Likewise.
(gtk_tree_selection_select_range): Do g_return_if_fail() if the
model is NULL.
(gtk_tree_selection_unselect_range): Likewise.
* gtk/gtkfilesystemunix.c (fill_in_names): Return immediately if
g_dir_open() fails: there is no need to set the error ourselves,
as g_dir_open() already does it.
Matthias Clasen [Thu, 8 Jul 2004 21:19:23 +0000 (21:19 +0000)]
Allow to restore the default search function. (#145365, John Finlay)
* gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Allow
to restore the default search function. (#145365, John Finlay)
Matthias Clasen [Thu, 8 Jul 2004 20:29:19 +0000 (20:29 +0000)]
Don't leak references to the drag context. (#144324, Alex Larsson)
2004-07-08 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Don't leak
references to the drag context. (#144324, Alex Larsson)
Alexander Shopov [Thu, 8 Jul 2004 06:29:10 +0000 (06:29 +0000)]
Updated Bulgarian translation by Vladimir "Kaladan" Petkov
2004-07-08 Alexander Shopov <ash@contact.bg>
* bg.po: Updated Bulgarian translation by
Vladimir "Kaladan" Petkov <vpetkov@i-space.org>
Matthias Clasen [Thu, 8 Jul 2004 04:33:50 +0000 (04:33 +0000)]
Stop editing when a new model is set. (#145566, Dmitry M. Shatrov)
Thu Jul 8 00:33:15 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_set_model): Stop editing
when a new model is set. (#145566, Dmitry M. Shatrov)
Matthias Clasen [Thu, 8 Jul 2004 04:00:56 +0000 (04:00 +0000)]
Updates
Matthias Clasen [Thu, 8 Jul 2004 03:56:36 +0000 (03:56 +0000)]
New functions to disable/enable individual loaders and to obtain license
Wed Jul 7 23:53:58 2004 Matthias Clasen <maclas@gmx.de>
* gdk-pixbuf-io.h:
* gdk-pixbuf-io.c (gdk_pixbuf_format_is_disabled):
* gdk-pixbuf-io.c (gdk_pixbuf_format_set_disabled):
* gdk-pixbuf-io.c (gdk_pixbuf_format_get_license):
New functions to disable/enable individual loaders and to
obtain license information about loaders.
* gdk-pixbuf-io.h (GdkPixbufFormat): Add disabled and
license fields.
* gdk-pixbuf-io.c (_gdk_pixbuf_get_module):
* gdk-pixbuf-io.c (_gdk_pixbuf_get_named_module): Skip
disabled loaders.
* io-*.c: Add license information in the fill_info
functions.
Matthias Clasen [Thu, 8 Jul 2004 03:48:10 +0000 (03:48 +0000)]
Make sure that subpixbufs are properly aligned for
Wed Jul 7 23:44:32 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkimage.c (gtk_image_expose): Make sure that subpixbufs
are properly aligned for gdk_pixbuf_saturate_and_pixelate(),
in order to avoid rendering artifacts from misaligned
pixelation patterns. (#145585, Felipe Heidrich, Billy Biggs)
Matthias Clasen [Wed, 7 Jul 2004 16:24:55 +0000 (16:24 +0000)]
Small documentation fixes.
2004-07-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c:
* gtk/gtktreeview.h: Small documentation fixes.
Matthias Clasen [Wed, 7 Jul 2004 16:22:57 +0000 (16:22 +0000)]
Misc additions.
2004-07-07 Matthias Clasen <mclasen@redhat.com>
* gtk/tmpl/*: Misc additions.
* gtk/gtk-sections.txt: Updates.
* gtk/tmpl/gtkcellrendererprogress.sgml: New file.
* gtk/gtk-docs.sgml: Add GtkCellRendererProgress.
* gtk/Makefile.am (HTML_IMAGES): Add file and directory icons.
Matthias Clasen [Wed, 7 Jul 2004 15:55:28 +0000 (15:55 +0000)]
Small documentation fixes.
2004-07-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c:
* gtk/gtktreeview.h: Small documentation fixes.
Matthias Clasen [Wed, 7 Jul 2004 15:33:16 +0000 (15:33 +0000)]
Fix the build.
Matthias Clasen [Wed, 7 Jul 2004 15:26:21 +0000 (15:26 +0000)]
Forgotten file.
Matthias Clasen [Wed, 7 Jul 2004 15:15:35 +0000 (15:15 +0000)]
Support separators in combo boxes and more generally in tree views
2004-07-07 Matthias Clasen <mclasen@redhat.com>
Support separators in combo boxes and more generally in tree
views (#135873):
* gtk/gtkcombobox.h:
* gtk/gtkcombobox.c (gtk_combo_box_get_row_separator_column):
* gtk/gtkcombobox.c (gtk_combo_box_set_row_separator_column):
Add a ::row-separator-column property with getter and setter,
which can indicate a boolean model column to determine which
rows are separators.
* gtk/gtkcombobox.c: Display separator rows as separator menu
items in menu mode, and by using the new treeview separator
functionality in list mode.
* gtk/gtktreeview.h:
* gtk/gtktreeview.c (gtk_tree_view_get_row_separator_func):
* gtk/gtktreeview.c (gtk_tree_view_set_row_separator_func):
Add a callback to determine whether a row is a separator.
* gtk/gtktreeview.c (gtk_tree_view_bin_expose):
* gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
* gtk/gtktreeview.c (validate_row): Use the new callback
to determine whether a row is a separator, and draw it
as a separator then. Since separators should take up less
vertical space than regular rows, this requires removing
the redundant MAX(...,expander_size) calls which appear in
many places. Instead, the MAX() is now only done in
validate_row(), and only if the row is not a separator.
To catch possible side effects of this intrusive change,
I have left EXPANDER_MAX() calls in place of the MAX() calls
which will emit a warning if something breaks. They should
be removed before 2.6.
* gtk/gtktreeselection.c (row_is_selectable): Don't let
separator rows be selected.
* tests/testcombo.c (create_blaat): Add a separator column.
Matthias Clasen [Wed, 7 Jul 2004 02:59:47 +0000 (02:59 +0000)]
Fix a 64bit alignment issue. (#144302, Sunil)
Tue Jul 6 22:58:00 2004 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkwindow-x11.c (gdk_x11_window_set_user_time): Fix
a 64bit alignment issue. (#144302, Sunil)
Tor Lillqvist [Wed, 7 Jul 2004 00:10:03 +0000 (00:10 +0000)]
gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text)
2004-07-07 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text)
* gdk/win32/gdkfont-win32.c (gdk_text_extents)
* gdk/win32/gdkproperty-win32.c (find_common_locale,
gdk_property_change)
* gdk/win32/gdkselection-win32.c (gdk_selection_convert): Use
g_utf8_to_utf16() instead of the removed _gdk_utf8_to_ucs2() (see
below).
* gdk/win32/gdkglobals-win32.c
* gdk/win32/gdkmain-win32.c (_gdk_windowing_init)
* gdk/win3/gdkprivate-win32.h: Add a variable for the TARGETS
atom. Initialize it. Declare it. Drop the variable for the
COMPOUND_TEXT atom.
* gdk/win32/gdkim-win32.c (gdk_wcstombs): Don't return UTF-8. This
function is supposed to return the string in the locale's charset
and encoding. Use g_convert().
(gdk_mbstowcs): Similarily, don't take an UTF-8 string, but a
string in the locale's charset. Use g_convert().
(_gdk_ucs2_to_utf8, _gdk_utf8_to_wcs, _gdk_utf8_to_ucs2):
Delete. The UCS-2 functions didn't handle surrogates anyway. Use
GLib's UTF-16 functions instead. Windows uses UTF-16.
* gdk/win32/gdkprivate-win32.h: Remove declarations of the deleted
functions mentioned above.
* gdk/win32/gdkproperty-win32.c (gdk_property_change): Use CF_TEXT
also if the string is of type STRING, i.e. ISO-8859-1, and the
current codepage is 1252, and contains no C1 chars. Accept
also UTF8_STRING.
* gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
Mark as static. When storing STRING data, convert to
Latin-1. (#140537)
(gdk_selection_owner_set_for_display): Now that STRING is always
ISO-8859-1, use UTF8_STRING when sending the selection request
to ourselves.
(gdk_selection_convert): Handle also UTF8_STRING. (#140537, John
Ehresman)
(gdk_text_property_to_text_list_for_display): Make work more like
X11 version. Do obey the encoding parameter.
(gdk_string_to_compound_text_for_display,
gdk_utf8_to_compound_text_for_display): Don't even pretend
supporting COMPOUND_TEXT.
(gdk_utf8_to_string_target): Convert to ISO-8859-1, like on X11.
(sanitize_utf8): Zero-terminate string.
Tor Lillqvist [Tue, 6 Jul 2004 22:31:45 +0000 (22:31 +0000)]
Also gdk-pixbuf.c was changed.
Tor Lillqvist [Tue, 6 Jul 2004 22:27:44 +0000 (22:27 +0000)]
Mark the version variables for proper import and export from Windows DLLs.
2004-07-06 Tor Lillqvist <tml@iki.fi>
* gdk-pixbuf-features.h.in: Mark the version variables for proper
import and export from Windows DLLs. Thanks to Laurent Sansonetti
for reporting the problem.
Matthias Clasen [Tue, 6 Jul 2004 20:28:48 +0000 (20:28 +0000)]
Add stock_file_16.png, stock_file_24.png, stock_directory_16.png and
2004-07-06 Matthias Clasen <mclasen@redhat.com>
* gtk/stock-icons/Makefile.am: Add stock_file_16.png,
stock_file_24.png, stock_directory_16.png and stock_directory_24.png.
* gtk/gtkstock.h (GTK_STOCK_FILE, GTK_STOCK_DIRECTORY):
* gtk/gtkiconfactory.c (get_default_icons): New stock icons as
fallbacks for gtkfilechooser. Currently these are the same images
as the "new" and "open" items...
Jonathan Blandford [Tue, 6 Jul 2004 14:32:18 +0000 (14:32 +0000)]
Fix for #136496, Pawel Salek:
Tue Jul 6 10:00:22 2004 Jonathan Blandford <jrb@redhat.com>
Fix for #136496, Pawel Salek:
* gtk/gtktreeview.c (gtk_tree_view_row_changed): Queue a redraw on
a node when it changes in fixed_height mode.
(gtk_tree_view_node_queue_redraw): new function to queue a redraw
on a node.
Matthias Clasen [Tue, 6 Jul 2004 13:28:42 +0000 (13:28 +0000)]
Make sure private->monitor_num is a valid monitor number before using it.
2004-07-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_position): Make sure
private->monitor_num is a valid monitor number before
using it. (#139187, Michael Natterer)
2004-06-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfontbutton.c (gtk_font_button_update_font_info): Avoid
a crash if the font doesn't exist. (#144967, Yevgen Muntyan)